package com.sky.service;

import com.sky.vo.OrderReportVO;
import com.sky.vo.SalesTop10ReportVO;
import com.sky.vo.TurnoverReportVO;
import com.sky.vo.UserReportVO;

import javax.servlet.http.HttpServletResponse;
import java.time.LocalDate;

/**
 * 报表业务层
 *
 * @author liuqi
 * @Date 2023/11/11
 */
public interface ReportService {
    /**
     *  统计营业额
     */
    TurnoverReportVO turnoverStatistics(LocalDate begin, LocalDate end);

    /**
     *  统计用户数量
     */
    UserReportVO getUserStatistics(LocalDate begin, LocalDate end);

    /**
     * 订单数据统计
     */
    OrderReportVO getOrderStatistics(LocalDate begin, LocalDate end);

    /**
     *  统计商品销量前10名
     */
    SalesTop10ReportVO getSalesTop10(LocalDate begin, LocalDate end);

    /**
     * 导出近30天的运营数据报表
     **/
    void exportBusinessData(HttpServletResponse response);
}
